/*
 * MIT License
 *
 * Copyright (c) 2025 Mark·虎
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 */

package com.hsxxherp.key.support.i18n.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hsxxherp.key.support.model.entity.BaseAuditEntity;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * <p>
 * 国际化资源模板实体类，用于存储国际化资源的模板信息。
 * 每个资源模板包含资源代码和默认消息等信息，可用于生成不同语言的国际化资源。
 * </p>
 *
 * @author Mark·虎
 * @date 2025年
 */
@TableName("i18n_resource_template")
@Schema(name = "I18nResourceTemplate", description = "国际化资源模板实体类，存储国际化资源的模板信息")
public class I18nResourceTemplate extends BaseAuditEntity {

    /**
     * 资源代码，用于唯一标识一个国际化资源模板
     */
    @TableField("resource_code")
    @Schema(name = "resource_code", description = "资源代码，唯一标识国际化资源模板")
    private String resourceCode;

    /**
     * 默认消息，当没有特定语言的翻译时使用的默认文本内容
     */
    @TableField("default_message")
    @Schema(name = "default_message", description = "默认消息，无特定语言翻译时使用的默认文本")
    private String defaultMessage;

    public String getResourceCode() {
        return resourceCode;
    }

    public void setResourceCode(String resourceCode) {
        this.resourceCode = resourceCode;
    }

    public String getDefaultMessage() {
        return defaultMessage;
    }

    public void setDefaultMessage(String defaultMessage) {
        this.defaultMessage = defaultMessage;
    }

    @Override
    public String toString() {
        return "I18nResourceTemplate{" +
                "resourceCode='" + resourceCode + '\'' +
                ", defaultMessage='" + defaultMessage + '\'' +
                '}';
    }
}